﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ToDoList.aspx.cs" Inherits="CRM.Web.CallBackManage.ToDoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" >
        $(document).ready(function() {
            $('.hlModify').bind('click', function() {
                var url = $(this).attr('href');
                var title = '任务处理';
                openPage(url, title, 1000, 600);
                return false;
            });
        });
    </script>
    
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
        <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
            <tr>
                <td class="left">
                    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
                </td>
                <td class="middle">
                    <div class="pagetitle">
                        <div>
                            <asp:Label ID="lblTitle" runat="server" Text="待回访任务列表"></asp:Label></div>
                    </div>
                </td>
                <td class="right">
                    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
                </td>
            </tr>
        </table>
    <div id="divMain">
        <div style="width: 100%">
            <div class="listdiv">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                客户姓名:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCUSTOMERNAME" runat="server" CssClass="txt" MaxLength="150" Rows="3"
                                TextMode="SingleLine"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                活动名称:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList ID="ddlTASK_ID" runat="server" CssClass="ddl" ></asp:DropDownList>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                联络进程:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList ID="ddlCASE_PROCESS" runat="server" CssClass="ddl" ></asp:DropDownList>
                        </td>
                        
                    </tr>
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                分配时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtASSIGN_DATEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtASSIGN_DATEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                </div>
                        </td>
                        <td class="content">
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                            <div style="width: 200px;" class="nowrap">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSearch_Click" /></div>
                        </td>
                    </tr>
                </table>
                <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                    OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting"
                    AllowPaging="True" AllowSorting="True" SortExpressionValue="CUSTOMERID" SortDirectionValue="DESC">
                    <Columns>
                        <asp:TemplateField HeaderText="客户编号" SortExpression="CUSTOMERID">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyCUSTOMERID" runat="server" NavigateUrl='<%# String.Format(ModifyUrl, Eval("CUSTOMERID"), Eval("TASK_ID")) %>'
                                    Text='<%# Bind("CUSTOMERID") %>' CssClass="hlModify" ></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="客户姓名" SortExpression="CUSTOMERNAME">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyCUSTOMERNAME" runat="server" NavigateUrl='<%# String.Format(ModifyUrl, Eval("CUSTOMERID"), Eval("TASK_ID")) %>'
                                    Text='<%# Bind("CUSTOMERNAME") %>' CssClass="hlModify" ></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TASK_ID" HeaderText="活动编号" SortExpression="TASK_ID" Visible="False" />
                        <asp:BoundField DataField="TASK_NAME" HeaderText="活动名称" SortExpression="TASK_NAME" />
                        <asp:BoundField DataField="ASSIGN_DATE" HeaderText="分配时间" SortExpression="ASSIGN_DATE"
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="FIRST_CONTACT_DATE" HeaderText="首次联络时间" SortExpression="FIRST_CONTACT_DATE"
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="LAST_CONTACT_DATE" HeaderText="最后联络时间" SortExpression="LAST_CONTACT_DATE"
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="CURRENT_ID" HeaderText="当前处理人编号" SortExpression="CURRENT_ID"
                            Visible="false" />
                        <asp:BoundField DataField="CURRENT_NAME" HeaderText="当前处理人" SortExpression="CURRENT_NAME" />
                        <asp:BoundField DataField="CASE_STATUS" HeaderText="联络结果" SortExpression="CASE_STATUS" />
                        <asp:BoundField DataField="CASE_ASSIN_STATUS" HeaderText="分配结果" SortExpression="CASE_ASSIN_STATUS" />
                        <asp:BoundField DataField="CASE_PROCESS" HeaderText="联络进程" SortExpression="CASE_PROCESS" />
                        <asp:BoundField DataField="CONTACTNUM" HeaderText="联络次数" SortExpression="CONTACTNUM" />
                        <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号" SortExpression="CREATEPEOPLEID"
                            Visible="false" />
                        <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人" SortExpression="CREATEPEOPLE" />
                        <asp:BoundField DataField="CREATETIME" HeaderText="创建时间" SortExpression="CREATETIME"
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号" SortExpression="LASTMODIFYPEOPLEID"
                            Visible="false" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人" SortExpression="LASTMODIFYPEOPLE" Visible="false" />
                        <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间" SortExpression="LASTMODIFYTIME"
                            DataFormatString="{0:yyyy-MM-dd}" Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部编码" SortExpression="BUSINESSDIVISIONCODE"
                            Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称" SortExpression="BUSINESSDIVISIONNAME" />
                        <asp:BoundField DataField="REMARKS" HeaderText="备注信息" SortExpression="REMARKS" Visible="false" />
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <ItemTemplate>
                                <div style="white-space: nowrap;">
                                    <asp:HyperLink ID="hlModify" runat="server" NavigateUrl='<%# String.Format(ModifyUrl, Eval("CUSTOMERID"), Eval("TASK_ID")) %>'  CssClass="hlModify" >处理</asp:HyperLink>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="row2" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                </dp:WebGridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
